import java.util.Scanner;

public class TEST {
    public static void main(String[] args) {
        int[] arry={8,4,2,1,23,344,12,25,33};
        for(int i=0;i<arry.length;i++){
            System.out.print(arry[i]+" ");
        }
        System.out.println();
        int sum=0;
        for(int i=0;i<arry.length;i++){
            sum+=arry[i];
        }
        System.out.println("元素和："+sum);
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个数字：");
        int number=sc.nextInt();
        for(int i=0;i<arry.length;i++){
            if(arry[i]==number){
                System.out.println("包含 "+arry[i]);
            }
        }
    }
}
